<template>
	<view v-if="show" class="mask flex-c full-screen">
		<view class="dialog">
			<view class="pay-head flex-r">
				<text class="des"></text>
				<text>接收消息通知</text>
				<view class="des" @tap="changeShow(false)">
					<image src="@/public/images/public/qxan.png" mode="aspectFit"></image>
				</view>
			</view>
			<view class="dialog-content">
				<!-- <view class="flex-r ac">
					<view class="author-image border-round">
						<lazy-image class="inheritwh border-round"
							:src="expertInfo.expertAvatar+'?imageView2/1/w/100/h/100/q/50'"
							:type="userType" fit="cover"></lazy-image>
					</view>
					<view class="notice-img">
						<text class="notice-expertInfo">关注<text class="notice-expertInfoName">“{{expertInfo.subscribeName}}”</text>，就能第一时间收到我的最新推送哦~</text>
					</view>
				</view> -->
				<view class="subscribeUrl flex-r ac jc">
					<image class="img" :src="expertInfo.subscribeUrl" mode="widthFix"></image>
				</view>
			</view>	
			<view class="foot flex-r ac jc">
				<image class="jt"  src="@/public/images/expert/jt.png" mode="aspectFit"></image>
				<text>长按识别二维码，订阅推送消息</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: 'ch-poput',
		props: {
			show: {
				type: Boolean,
				default: false,
			},
			expertInfo:{
				type:Object,
				default: ()=>{
					return {}
				}
			},
			userType:{
				type:String,
				default:''
			}
		},
		
		methods: {
			//显示隐藏
			changeShow(value) {
				this.$emit("getShow", value)
			},
			//关闭好友申请
			// close(){
			// 	this.changeShow(false)
			// },
		}
	}
</script>

<style lang="scss" scoped>
	.mask {
		position: fixed;
		top: 0;
		left: 0;
		width: 100vw;
		height: 100vh;
		background-color: rgba(0, 0, 0, 0.4);
		z-index: 999;
		width: 100%;
		margin: $pc-margin;
		overflow-y: auto;
		.dialog {
			width: 640rpx;
			position: absolute;
			top: 50%;
			left: 50%;
			transform: translate(-50%, -50%);
			z-index: 1000;
			background-color: #fff;
			border-radius: 10rpx;
			.pay-head {
				padding: 30rpx 20rpx;
				box-sizing: border-box;
				border-bottom: 1rpx solid #EDEDED;
				align-items: center;
				justify-content: space-between;
				font-size: 36rpx;
				font-weight: 500;
			
				.des {
					width: 100rpx;
					font-size: 32rpx;
				}
			
				.des:last-child {
					text-align: right;
			
					image {
						width: 40rpx;
						height: 40rpx;
					}
				}
			}
			.dialog-content{
				padding: 30rpx 20rpx 0;
			}
			.author-image {
				position: relative;
				width: 96rpx;
				height: 96rpx;
				background-color: #FFFFFF;
				background: #030506;
				border-radius: 50%;
				background-size: 100%;
				margin-right: 20rpx;
			}
			.notice-img{
				background-image: url('@/public/images/expert/dhk.png');
				background-size: 480rpx 120rpx;
				background-repeat: no-repeat;
				background-position:center center; 
				.notice-expertInfo{
					display: block;
					padding: 25rpx 30rpx 25rpx 40rpx;
					font-size: 26rpx;
					font-weight: 500;
					color: #804000;
					line-height: 42rpx;
				}
				.notice-expertInfoName{
					color: #FF0000FF;
					font-weight: 500;
				}
			}
			.subscribeUrl{
				margin-top: 40rpx;
				.img{
					max-width: 320rpx;
				}
			}
			.foot{
				margin: 40rpx auto;
				width: 520rpx;
				height: 48rpx;
				background: #FFE5E5;
				font-size: 26rpx;
				color: #FF0000;
				.jt{
					width: 40rpx;
					height: 32rpx;
				}
			}
		}
	}
</style>